@import "../abstracts/variables.scss";
@import "../abstracts//mixins";

@mixin headingInputContainerMixin {
  position: relative;

  & input {
    color: $text-area-color-dark;
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    padding-left: 2.4rem;
    font-size: 1.4rem;
    outline: none;
    border: 1px solid rgba(34, 34, 34, 0.192);
    transition: all 0.3s ease-in;
    width: 100%;

    @include sm {
      font-size: 1.2rem;
    }
  }

  & svg {
    position: absolute;
    top: 1.1rem;
    left: 0.5rem;
    height: 1.5rem;
    width: 1.5rem;

    @include sm {
      top: 1.1rem;
      height: 1.2rem;
      width: 1.2rem;
    }
  }
}

@mixin rowContainerMixin {
  width: 19%;
  font-size: 1.3rem;
  overflow-x: scroll;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  font-family: $font-family-2;
  padding-left: 0.3rem;

  &::-webkit-scrollbar {
    display: none;
  }

  @include sm {
    font-size: 1.2rem;
  }
}

.pluginsTableContainer {
  &__headerContainer {
    @include flexbox;
    @include justify-content(space-between);
    @include flex-direction(row);
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgb(243, 243, 243);

    &__checkbox {
      width: 2%;
      margin-top: 1rem;
      margin-right: 0.5rem;
    }

    &__codeInputContainer {
      width: 19%;
      @include headingInputContainerMixin;
    }

    &__nameInputContainer {
      width: 19%;
      @include headingInputContainerMixin;
    }

    &__typeInputContainer {
      width: 19%;
      @include headingInputContainerMixin;
    }

    &__groupInputContainer {
      width: 19%;
      @include headingInputContainerMixin;
    }

    &__helpInputContainer {
      width: 19%;
      @include headingInputContainerMixin;
    }
  }

  &__bodyContainer {
    height: 55rem;
    overflow: scroll;

    &__rowContainer {
      @include flexbox;
      @include justify-content(space-between);
      @include flex-direction(row);
      margin: 1rem 0;
      padding: 1rem;

      &__checkbox {
        width: 2%;
        margin: 0 0.5rem;

        @include sm {
        }
      }

      &__pluginCode {
        @include rowContainerMixin;
      }

      &__pluginName {
        @include rowContainerMixin;
      }

      &__pluginType {
        @include rowContainerMixin;
      }

      &__pluginGroup {
        @include rowContainerMixin;
      }

      &__pluginHelp {
        @include rowContainerMixin;
      }
    }

    @include sm {
      height: 40rem;
    }
  }
}
